#include "tinyrpc/base//thread.h"
#include <iostream>
using namespace TinyRPC;

void func1(){
    std::cout<<"func1" << std::endl;
}
void func2(){
    std::cout<<"func2" << std::endl;
}
int main(){
   Thread thread1(func1);
   Thread thread2(func2);
   std::cout<<thread1.getName()<<std::endl;
   thread1.start();
   thread2.start();
   thread1.join();
   thread2.join();
}